<#include "macro/include.ftl"/>
<#import "spring.ftl" as spring />
<html>
	<head>
		<title>牛牛妞妞 | 社区 | 用户创建</title>
	</head>
	<body>
		<div class="main_module">
			<input id="navtype" type="hidden" value="user"/>
			<form id="registerUserForm" method="post" action="${rc.contextPath}/user/register.og">
				<input type="hidden" name="submitType" value="registerUserForm"/>
				<h2>用户创建</h2>
				<p>		
					<@spring.bind "registerUserForm.*" />
					<@error.field errorList=spring.status.errorMessages/>
				</p>	
				<fieldset>
					<@spring.bind "registerUserForm.email" />
					<#assign expr=spring.status.expression> 
					<label for="${expr}">
							<span>email:<@form.asterisk/></span>
						<span class="last">
							<input id="${expr}" class="text" name="${expr}" 
							value="${spring.status.value!}" type="text"/>
					<@spring.bind "registerUserForm.emailVisible" />
					<#assign expr=spring.status.expression> 
							<@form.checkedInput idname=expr checked=spring.status.value>公开</@form.checkedInput>
						</span>
					</label>		
					<@spring.bind "registerUserForm.nickname" />
					<#assign expr=spring.status.expression> 
					<label for="${expr}">
						<span>昵称:<@form.asterisk/></span>
						<span class="last">
							<input id="${expr}" class="text" name="${expr}" 
							value="${spring.status.value!}" type="text"/><strong>2-16个字符</strong>
						</span>
					</label>				
					<@spring.bind "registerUserForm.password" />
					<#assign expr=spring.status.expression> 
					<label for="${expr}">
						<span>密码:<@form.asterisk/></span>
						<span class="last">
							<input id="${expr}" class="text" name="${expr}" 
							value="" type="password"/>
							<strong>6-16位字母和数字，区分大小写</strong>
						</span>
					</label>
					<@spring.bind "registerUserForm.confirmPassword" />
					<#assign expr=spring.status.expression> 
					<label for="${expr}" class="last">
						<span>确认密码:<@form.asterisk/></span>
						<span class="last">
							<input id="${expr}" class="text" name="${expr}" 
							value="" type="password"/>
						</span>
					</label>
				</fieldset>			
				<fieldset>
					<@spring.bind "registerUserForm.intro" />
					<#assign expr=spring.status.expression> 			
					<label for="${expr}}">
						<span>介绍自己:</span>
						<span class="last">
							<textarea id="${expr}" name="${expr}">${spring.status.value!}</textarea>
						</span>					
					</label>
					<label class="last">
						<span>头像:</span>
					</label>
				</fieldset>							
				<fieldset class="submit">
					<input class="submit" type="submit" value="保存后登陆首页" />
					<input class="submit" type="submit" value="保存后继续创建" />
				</fieldset>			
			</form>
		</div>
	</body>
</html>